const mongoose = require("./db.js");

var MessageSchema = mongoose.Schema({
    uid: String,//存在未读私信的用户的uid
    messageBody: [{
        uid: String,
        name: String,//发私信的人的昵称
        head: String,//发私信的人的头像
        content: String,//私信的内容
        sendTime: String//私信发出时间
    }],
});

module.exports = mongoose.model('Message', MessageSchema, 'message');